package com.ofek.applicationbase.forms.question;

public abstract class QuestionOption {
	public static class EmptyAnswer extends QuestionOption {
		private String emptyString;

		public EmptyAnswer(String emptyString) {
			this.emptyString = emptyString;
		}
		@Override
		public String toString() {
			return emptyString;
		}

		@Override
		public Object toAnswer() {
			return null;
		}
		
	}

	public abstract String toString();
	public abstract Object toAnswer();
	/**
	 * this hook lets you when the item was chosen, so that you can use it to ask the user for a custom answer that you can return when asked for the answer.
	 */
	public void onChosen() {}
}
